;;; +auto-package-update.el --- Initialization and mode setting.

;;; Homepage:
;; https://github.com/rranelli/auto-package-update.el

;;; Commentary:
;; Updating packages.

;;; Code:

(use-package auto-package-update
  :ensure
  :init
  (setq auto-package-update-last-update-day-filename "packages-update"
	auto-package-update-last-update-day-path (expand-file-name auto-package-update-last-update-day-filename spruce-cache-truedirectory)
	auto-package-update-delete-old-versions t)

  (defun packages-update ()
    "Update the list of packages and installed packages."
    (interactive)
    (package-refresh-contents)
    (auto-package-update-now)))

(provide '+auto-package-update)

;;; +auto-package-update.el ends here
